package xsis.music.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import xsis.music.dao.AdminDao;
import xsis.music.model.BarangModel;
import xsis.music.model.KategoriModel;
import xsis.music.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {
	
	@Autowired
	AdminDao adminDao;

	@Override
	@Transactional
	public Collection<BarangModel> listAllBarang() throws Exception {
		// TODO Auto-generated method stub
		return adminDao.listAllBarang();
	}

	@Override
	public Collection<KategoriModel> listAllKategori() throws Exception {
		// TODO Auto-generated method stub
		return adminDao.listAllKategori();
	}

}
